How to make a promise object immutable when setting different states in Javascript

welcome to shbcf.ru